import {FC, ReactNode} from "react";
import {SearchFormItem} from "../common";
import {marginLeft} from "@/utils";
import {Form} from "antd";

interface UserProps {
    setMobile?: (e?: any) => void;
    setNickName?: (e?: any) => void;
    children?: ReactNode;
}

const User: FC<UserProps> = ({setMobile, setNickName}) => (
    <Form>
        <div className="fl">
            <SearchFormItem label="昵称" onSearch={setNickName} />
            <SearchFormItem label="手机号" style={marginLeft} onSearch={setMobile} />
        </div>
    </Form>
);

export default User;
